package com.example.backend.mapper;

import com.example.backend.model.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface GoodsMapper {
    void dropTable();
    void createTable();

    int insertOne(Goods goods);
    int updateOne(Goods goods);
    int deleteOne(int id);

    List<Goods> findWith(Map<String, String> paramsMap);
    List<Goods> findAll();
    Goods findOne(Integer id);
}
